'''一个使用json序列化的学习代码'''

import json

a = [1,2,3,4,5]
b = {'name':'zhangsan','age':18}
c = (1,2,3,4,5)

e = 1
f = 1.1
g = 'hello world'

data = [a,b,c,e,f,g]
for i in data:
    json_b = json.dumps(i)
    print(json_b, type(json_b))
    b_json_b = json.loads(json_b)
    print(b_json_b, type(b_json_b))